package com.sangmo.fts.process.storage.service;

import com.sangmo.boot.framework.plugin.dataview.crud.service.BaseViewService;
import com.sangmo.boot.framework.plugin.dataview.data.IDataViewRepo;
import com.sangmo.fts.process.storage.model.CsfLadingBillItem;
import com.sangmo.fts.process.storage.repo.CsfLadingBillItemRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CsfLadingBillItemEntityService extends BaseViewService<CsfLadingBillItem> {

    @Autowired
    private CsfLadingBillItemRepo csfLadingBillItemRepo;

    @Override
    protected IDataViewRepo<CsfLadingBillItem> getRepo() {
        return csfLadingBillItemRepo;
    }

    public List<CsfLadingBillItem> saveAll(List<CsfLadingBillItem> ladingBillItems) {
        return csfLadingBillItemRepo.saveAll(ladingBillItems);
    }
}
